<?php
class Zend_View_Helper_Menu
{

    public $view;

    public function menu ($gender)
    {
        $categoryMapper = new Model_Category_Mapper();
        $html = '<ul>';
        foreach ($categoryMapper->getByGender($gender) as $category)
        {
            $html .= '<li><a href="/category/products/id/'.$category->id.'"><span>' . $category->name . '</span></a></li>';
        }
        $html .= '</ul>';
        return $html;
    }
    public function setView (Zend_View_Interface $view)
    {
        $this->view = $view;
    }
}

